home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds.fmt / lpd.man < prev    next >
Encoding:
Text File  |  1989-01-16  |  6.8 KB  |  199 lines

  1.  
  2.  
  3.  
  4. LPD                       User Commands                       LPD
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      lpd - line printer daemon
  10.  
  11. SSYYNNOOPPSSIISS
  12.      llppdd [ --ll ] [ port # ]
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.      _L_p_d is the line printer daemon (spool area handler)  and  is
  16.      normally invoked at boot time from the _r_c(8) file.  It makes
  17.      a single pass through the _p_r_i_n_t_c_a_p(5) file to find out about
  18.      the  existing  printers  and  prints  any files left after a
  19.      crash. It then uses the system calls _l_i_s_t_e_n(2) and _a_c_c_e_p_t(2)
  20.      to  receive  requests  to print files in the queue, transfer
  21.      files to the spooling area, display  the  queue,  or  remove
  22.      jobs from the queue.  In each case, it forks a child to han-
  23.      dle the request so the parent can  continue  to  listen  for
  24.      more  requests.  The Internet port number used to rendezvous
  25.      with  other  processes  is  normally  obtained   with   _g_e_t_-
  26.      _s_e_r_v_b_y_n_a_m_e(3)  but  can  be changed with the _p_o_r_t# argument.
  27.      The --ll flag causes _l_p_d to log valid requests  received  from
  28.      the network. This can be useful for debugging purposes.
  29.  
  30.      Access control is provided by two means. First, All requests
  31.      must  come  from  one  of  the  machines  listed in the file
  32.      /_e_t_c/_h_o_s_t_s._e_q_u_i_v or /_e_t_c/_h_o_s_t_s._l_p_d.  Second, if  the  ``rs''
  33.      capability  is  specified  in  the  _p_r_i_n_t_c_a_p  entry  for the
  34.      printer being accessed, _l_p_r requests will  only  be  honored
  35.      for  those  users  with  accounts  on  the  machine with the
  36.      printer.
  37.  
  38.      The file _m_i_n_f_r_e_e in each spool directory contains the number
  39.      of  disk blocks to leave free so that the line printer queue
  40.      won't completely fill the disk.  The  _m_i_n_f_r_e_e  file  can  be
  41.      edited with your favorite text editor.
  42.  
  43.      The file _l_o_c_k in each spool directory  is  used  to  prevent
  44.      multiple daemons from becoming active simultaneously, and to
  45.      store information  about  the  daemon  process  for  _l_p_r(1),
  46.      _l_p_q(1),  and _l_p_r_m(1).  After the daemon has successfully set
  47.      the lock, it scans the directory for  files  beginning  with
  48.      _c_f.   Lines  in  each _c_f file specify files to be printed or
  49.      non-printing actions to be performed.  Each such line begins
  50.      with  a  key  character  to  specify  what  to  do  with the
  51.      remainder of the line.
  52.  
  53.      J    Job Name.  String to be used for the job  name  on  the
  54.           burst page.
  55.  
  56.      C    Classification.  String to be used for the  classifica-
  57.           tion line on the burst page.
  58.  
  59.      L    Literal.  The line contains  identification  info  from
  60.  
  61.  
  62.  
  63. Sprite v1.0             December 8, 1985                        1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. LPD                       User Commands                       LPD
  71.  
  72.  
  73.  
  74.           the  password  file  and  causes  the banner page to be
  75.           printed.
  76.  
  77.      T    Title.  String to be used as the title for _p_r(1).
  78.  
  79.      H    Host Name.  Name of the machine where _l_p_r was invoked.
  80.  
  81.      P    Person.  Login name of  the  person  who  invoked  _l_p_r.
  82.           This is used to verify ownership by _l_p_r_m.
  83.  
  84.      M    Send mail to the specified user when the current  print
  85.           job completes.
  86.  
  87.      f    Formatted File.  Name of  a  file  to  print  which  is
  88.           already formatted.
  89.  
  90.      l    Like ``f'' but passes control characters and  does  not
  91.           make page breaks.
  92.  
  93.      p    Name of a file to print using _p_r(1) as a filter.
  94.  
  95.      t    Troff File.  The file  contains  _t_r_o_f_f(1)  output  (cat
  96.           phototypesetter commands).
  97.  
  98.      n    Ditroff File.  The  file  contains  device  independent
  99.           troff output.
  100.  
  101.      d    DVI File.  The file contains _T_e_x(l) output (DVI  format
  102.           from Standford).
  103.  
  104.      g    Graph  File.   The  file  contains  data  produced   by
  105.           _p_l_o_t(3X).
  106.  
  107.      c    Cifplot File. The file contains data produced  by  _c_i_f_-
  108.           _p_l_o_t.
  109.  
  110.      v    The file contains a raster image.
  111.  
  112.      r    The file contains text data with FORTRAN carriage  con-
  113.           trol characters.
  114.  
  115.      1    Troff Font R. Name of the font file to use  instead  of
  116.           the default.
  117.  
  118.      2    Troff Font I. Name of the font file to use  instead  of
  119.           the default.
  120.  
  121.      3    Troff Font B. Name of the font file to use  instead  of
  122.           the default.
  123.  
  124.      4    Troff Font S. Name of the font file to use  instead  of
  125.           the default.
  126.  
  127.  
  128.  
  129. Sprite v1.0             December 8, 1985                        2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. LPD                       User Commands                       LPD
  137.  
  138.  
  139.  
  140.      W    Width. Changes the page width (in characters)  used  by
  141.           _p_r(1) and the text filters.
  142.  
  143.      I    Indent.  The number of characters to indent the  output
  144.           by (in ascii).
  145.  
  146.      U    Unlink.  Name of file  to  remove  upon  completion  of
  147.           printing.
  148.  
  149.      N    File name.   The  name  of  the  file  which  is  being
  150.           printed, or a blank for the standard input (when _l_p_r is
  151.           invoked in a pipeline).
  152.  
  153.      If a file can not be opened, a message will  be  logged  via
  154.      _s_y_s_l_o_g(3) using the _L_O_G__L_P_R facility.  _L_p_d will try up to 20
  155.      times to reopen a file it expects to be there,  after  which
  156.      it will skip the file to be printed.
  157.  
  158.      _L_p_d uses _f_l_o_c_k(2) to provide exclusive access  to  the  lock
  159.      file  and  to  prevent multiple deamons from becoming active
  160.      simultaneously.  If the daemon should be killed or die unex-
  161.      pectedly,  the lock file need not be removed.  The lock file
  162.      is kept in a readable ASCII form  and  contains  two  lines.
  163.      The  first is the process id of the daemon and the second is
  164.      the control file name of the current job being printed.  The
  165.      second  line is updated to reflect the current status of _l_p_d
  166.      for the programs _l_p_q(1) and _l_p_r_m(1).
  167.  
  168. FFIILLEESS
  169.      /etc/printcap           printer description file
  170.      /usr/spool/*            spool directories
  171.      /usr/spool/*/minfree    minimum free space to leave
  172.      /dev/lp*                line printer devices
  173.      /dev/printer            socket for local requests
  174.      /etc/hosts.equiv        lists machine names allowed printer access
  175.      /etc/hosts.lpd          lists machine names allowed printer access,
  176.                              but not under same administrative control.
  177.  
  178. SSEEEE AALLSSOO
  179.      lpc(8),  pac(1),   lpr(1),   lpq(1),   lprm(1),   syslog(3),
  180.      printcap(5)
  181.      _4._2_B_S_D _L_i_n_e _P_r_i_n_t_e_r _S_p_o_o_l_e_r _M_a_n_u_a_l
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195. Sprite v1.0             December 8, 1985                        3
  196.  
  197.  
  198.  
  199.